<?php
/**
 *      [迷你云] (C)2009-2012 南京恒为网络科技.
 *   软件仅供研究与学习使用，如需商用，请访问www.miniyun.cn获得授权
 * 
 */
?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title><?php echo Yii::app()->params["app"]["name"] ?>，我的云盘！ 爱分享 云生活</title>
                <link rel="stylesheet" type="text/css" href="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/css/style.css?v=<?php echo(Yii::app()->params['app']['version'])?>" media="all" />
		<script type="text/javascript">document.domain=window.location.host;</script>
        <script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/jquery_min.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>

        <script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/js/util.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>
        <script src="<?php echo(Yii::app()->params['app']['host'])?>/statics/web/setting/js/tip.js?v=<?php echo(Yii::app()->params['app']['version'])?>" type="text/javascript"></script>

        <style> .t-sel .f-main{ width:200px; padding-left:5px; } </style>
        <script type="text/javascript">
            $(document).ready(function(){
                                        $("#js_privacy").find("a").click(function(){
                    $("#js_privacy li").removeClass("s-nav-li-active");
                    $(this).parent().addClass("s-nav-li-active");
                    $('#sel_tab').val( $(this).attr("rel") );
                    $("#js_privacy_0").hide();
                    $("#js_privacy_1").hide();
                    $("#js_privacy_"+$(this).attr("rel")).show();
                });
                                    });
        </script>

    </head>
    <body>

        <div class="s-top">
            <ul class="s-nav" id="js_privacy">
                <li id="sel0" class="s-nav-li s-nav-li-active" style="width:110px;"><a href="javascript:;" rel="0">帐户开放设置</a></li>
                <li id="sel1" class="s-nav-li"><a href="javascript:;" rel="1">动态开放设置</a></li>
            </ul>
        </div>
            <div class="s-con privacy-setting dy-show back-input" id="js_privacy_0">
                <form method="post" action="?ct=account&ac=privacy&form=empty" name="info" vali="1">

                <input type="hidden" name="sel_tab" id="sel_tab" value="0" />
                <p class="border-bottom s-safe-title">
                    <strong>您可以通过以下选项，控制个人信息的是否开放</strong>
                </p>

                <div class="input-label">
                    <label for="" class="label-text">个人中心访问权限：</label>
                    <select name="privacy[pub_view_homepage]" id="privacy_pub_view_homepage" class="inp-sel">

                        <option value="2" selected>所有人</option>
                        <option value="1" >仅好友</option>
                        <option value="0" >不开放</option>
                    </select>

                </div>
                <div class="input-label">
                    <label for="" class="label-text">谁能给我发站内信：</label>

                    <select name="privacy[pub_message]" id="privacy_message" class="inp-sel">
                        <option value="0" selected>所有人</option>
                        <option value="1" >仅好友</option>
                    </select>
                </div>

                <div class="input-label">
                    <label for="" class="label-text">谁能加我为好友：</label>

                    <select name="privacy[pub_friend]" id="privacy_friend" class="inp-sel">
                        <option value="0" selected>需要申请</option>
                        <option value="1" >允许所有人</option>
                        <option value="2" >拒绝所有人</option>
                    </select>
                </div>

                <div class="input-label">
                    <label for="" class="label-text">是否允许别人搜索：</label>

                    <select name="privacy[pub_search_me]" id="privacy_search_me" class="inp-sel">
                        <option value="1" selected>允许</option>
                        <option value="0" >不允许</option>
                    </select>
                </div>

                <!--
                <div class="input-label">
                    <label for="" class="label-text">是否显示陌生人：</label>

                    <select name="privacy[pub_show_all]" id="privacy_pub_show_all" class="inp-sel">
                        <option value="1" selected>是</option>
                        <option value="0" >否</option>
                    </select>
                </div>
                <div class="input-label">
                    <label for="" class="label-text">是否显示您的好友：</label>
                    <select name="privacy[pub_show_friends]" id="privacy_pub_show_friends" class="inp-sel">
                        <option value="1" selected>是</option>
                        <option value="0" >否</option>
                    </select>
                </div>
                -->
                <div class="input-label">
                     <label for="" class="label-text">&nbsp;</label>
                    <a href="javascript:;" onclick="document.info.submit();return false;" class="circle-btn circle-btn-blue"><span>确 定</span></a>
                </div>
            </div>
            <div class="s-con privacy-setting dy-show back-input" id="js_privacy_1"style="display:none;">
                <p class="border-bottom s-safe-title">

                    <strong>您可以通过以下选项，	选择显示在您的好友的“好友动态”列表中</strong>
                </p>
                <div class="input-label">
                    <label for="" class="label-text">系统动作：</label>

                    <select name = 'privacy[share_system]' id='privacy_share_system' class='inp-sel'>
                    <option value='0' selected='selected'>仅好友</option>
                    <option value='1'>任何人</option>

                    <option value='-1'>完全保密</option>
</select>
                    &nbsp;(加好友、修改资料等)
                </div>
                <div class="input-label">
                    <label for="" class="label-text">文件共享：</label>

                    <select name = 'privacy[share_file]' id='privacy_share_file' class='inp-sel'>
                    <option value='0'>仅好友</option>

                    <option value='1' selected='selected'>任何人</option>
                    <option value='-1'>完全保密</option>
</select>
                </div>
                <div class="input-label">
                    <label for="" class="label-text">发表心情：</label>

                    <select name = 'privacy[share_mood]' id='privacy_share_mood' class='inp-sel'>

                    <option value='0'>仅好友</option>
                    <option value='1' selected='selected'>任何人</option>
                    <option value='-1'>完全保密</option>
</select>
                </div>
                <div class="input-label">
                    <label for="" class="label-text">发表日志：</label>

                    <select name = 'privacy[share_blog]' id='privacy_share_blog' class='inp-sel'>
                    <option value='0'>仅好友</option>
                    <option value='1' selected='selected'>任何人</option>
                    <option value='-1'>完全保密</option>
</select>
                </div>
                <div class="input-label">

                    <label for="" class="label-text">圈子动态：</label>
                    <select name = 'privacy[share_group]' id='privacy_share_group' class='inp-sel'>
                    <option value='0'>仅好友</option>
                    <option value='1' selected='selected'>任何人</option>
                    <option value='-1'>完全保密</option>
</select>
                </div>

                <div class="input-label">
                    <label for="" class="label-text">&nbsp;</label>
                    <a href="javascript:;" onclick="document.info.submit();return false;" class="circle-btn circle-btn-blue"><span>确 定</span></a>
                </div>
                </form>
            </div>
<script type="text/javascript">
	document.domain=window.location.host;
	$(function(){
		if(!parent.window.isFrame && parent.window.location.hash == ""){
			var href=window.location.href;
			window.location.href="<?php echo(Yii::app()->params['app']['host'])?>/index.php?r=setting/index&ac="+window.location.href.substring(href.indexOf("=")+1,href.length);
		}
	})
</script></body>
</html>

